/*******************************************************************************

  Paying Outsourced Labor: Direct Evidence from Linked Temp Agency-Worker-Client Data

  By Andres Drenik, Simon Jäger, Pascuel Plotkin and Benjamin Schoefer
  January 7th, 2021

  DESCRIPTION: Master Do-File

*******************************************************************************/





********************************************************************************
***** Global contain the home folder
* Note -- Running individual .do files requires manual changes
* Clear globals here
********************************************************************************
macro drop _all
if "`c(username)'" == "USERNAME" {
   global home = "SET-PATH"
}


********************************************************************************
* Running individual .do files
********************************************************************************

***** Building Data Files
do "${home}/00a_SetPaths.do"
// do "${dofiles}/01_Registro_Merge_Prep.do"
// do "${dofiles}/02_Data_Prep.do"
// do "${dofiles}/03_Eph_Cont_2009_2018_Creation.do"


***** Preparation of Regression Sample
// do "${dofiles}/04_Wage_Threshold.do"
// do "${dofiles}/05_Filter_Full_Data.do"
// do "${dofiles}/06_Workers_Group.do"
// do "${dofiles}/07_Multicolinearity_Check.do"


**** Main Analysis Files
// do "${dofiles}/08_Reg_Tenure.do"
// do "${dofiles}/09_Akm_Preparation.do"
// do "${dofiles}/10_Mincer_Equations.do"


**** Auxiliary Files For Figures
// do "${dofiles}/11_CBA_Coverage.do"
// do "${dofiles}/12_CBA_Collapse.do"


***** In-text Calculations
// do "${dofiles}/13_SD_Calculations.do"
// do "${dofiles}/14_Temp_Calculation_2005.do"
// do "${dofiles}/15_Connected_Set_Calculations.do"
// do "${dofiles}/16_User_Firms_Connected_Calculations.do"


***** Figures
// do "${dofiles}/Fig2.do"
// do "${dofiles}/Fig3.do"
// do "${dofiles}/Fig4.do"


***** Appendix Tables
// do "${dofiles}/TabA1.do"
// do "${dofiles}/TabA2.do"


***** Appendix Figures
// do "${dofiles}/FigA1a.do"
// do "${dofiles}/FigA1b.do"
// do "${dofiles}/FigA2.do"
// do "${dofiles}/FigA3.do"
// do "${dofiles}/FigA4.do"
